import { get, post } from './axios';

// 获取面经详情
export function getArticleDetail(articleId) {
    return get(`/admin/article/detail/${articleId}`);
}

// 获取面经列表
export function getArticleList() {
    return get(`/admin/article/list`);
}

// 删除面经
export function deleteArticle(articleId) {
    return get(`/admin/article/delete/${articleId}`);
}

// 获取用户昵称
export function getNickname(userId) {
    return get(`/admin/article/nickname/${userId}`);
}

// 审核面经
export function verifyArticle(params) {
    return post(`/admin/article/verify`, params);
}

// 搜索面经
export function searchArticle(id) {
    return get('/admin/article/search', {
        params: {
            _id: id
        }
    })
}